//
//  DestinationWireFrame.swift
//  MobileXGlobal
//
//  Created by ROBIN.J.Y.ZHONG on 2023/5/25.
//

import UIKit

class DestinationWireFrame: DestinationWireFrameProtocol {
    
    static func createDestinationModule() -> UIViewController & DestinationViewProtocol {
        let view: UIViewController & DestinationViewProtocol = DestinationView()
        let presenter: DestinationPresenterProtocol = DestinationPresenter()
        let interactor: DestinationInteractorProtocol = DestinationInteractor()
        let wireFrame: DestinationWireFrameProtocol = DestinationWireFrame()
        
        view.presenter = presenter
        presenter.view = view
        presenter.interactor = interactor
        presenter.wireFrame = wireFrame
        interactor.presenter = presenter
        
        return view
    }
    
}
